home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / printer / jcosub26.zip / LOADSCRI.JSR < prev    next >
Text File  |  1994-01-03  |  424b  |  21 lines

  1. /* JACOsub LOADSCRIPT command demonstration.
  2.    This command causes JACOsub load a script into its editor.
  3.  
  4.    SAVESCRIPT returns RESULT=0 if successful, or RESULT=1 if a problem
  5.    occurred.
  6. */
  7.  
  8. if ~arg() then do ; say 'No file name.' ; exit 1 ; end
  9.  
  10. parse arg filename
  11. options results
  12.  
  13. address 'JACOsub'
  14. 'LOADSCRIPT' filename
  15.  
  16. if result then
  17.     say 'script failed to load'
  18. else
  19.     say 'script loaded successfully'
  20. exit result
  21.